﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Google.Translates.Core.Entries
{
    //{ "data": { "translations": [ { "translatedText": "Wind" } ] } } 

    /*
     200 OK

    {
        "data": {
            "translations": [
                {
                    "translatedText": "Hallo Welt",
                    "detectedSourceLanguage": "en"
                }
            ]
        }
    }

     */

    [DataContract]
    public class TranslationItem
    {
        /// <summary>
        /// Value For JSON data.translations.translatedText
        /// </summary>
        [DataMember(Order = 0, Name = "translatedText")]
        public string TranslatedText { get; set; }

        /// <summary>
        /// Value For JSON data.translations.detectedSourceLanguage
        /// </summary>
        [DataMember(Order = 1, Name= "detectedSourceLanguage")]
        public string DetectedSourceLanguage { get; set; }
    }
}
